/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.lacibMusic.entidades;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author AlanmLira
 */
@Entity
@Table(name = "Perfis")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Perfis.findAll", query = "SELECT p FROM Perfis p"),
    @NamedQuery(name = "Perfis.findById", query = "SELECT p FROM Perfis p WHERE p.id = :id"),
    @NamedQuery(name = "Perfis.findByRock", query = "SELECT p FROM Perfis p WHERE p.rock = :rock"),
    @NamedQuery(name = "Perfis.findByJazz", query = "SELECT p FROM Perfis p WHERE p.jazz = :jazz"),
    @NamedQuery(name = "Perfis.findByLatin", query = "SELECT p FROM Perfis p WHERE p.latin = :latin"),
    @NamedQuery(name = "Perfis.findByHardcore", query = "SELECT p FROM Perfis p WHERE p.hardcore = :hardcore"),
    @NamedQuery(name = "Perfis.findByPop", query = "SELECT p FROM Perfis p WHERE p.pop = :pop"),
    @NamedQuery(name = "Perfis.findByCountry", query = "SELECT p FROM Perfis p WHERE p.country = :country"),
    @NamedQuery(name = "Perfis.findByBlues", query = "SELECT p FROM Perfis p WHERE p.blues = :blues"),
    @NamedQuery(name = "Perfis.findByFolk", query = "SELECT p FROM Perfis p WHERE p.folk = :folk"),
    @NamedQuery(name = "Perfis.findByHiphop", query = "SELECT p FROM Perfis p WHERE p.hiphop = :hiphop"),
    @NamedQuery(name = "Perfis.findByReb", query = "SELECT p FROM Perfis p WHERE p.reb = :reb"),
    @NamedQuery(name = "Perfis.findByEletronic", query = "SELECT p FROM Perfis p WHERE p.eletronic = :eletronic")})
public class Perfis implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "rock")
    private Integer rock;
    @Column(name = "jazz")
    private Integer jazz;
    @Column(name = "latin")
    private Integer latin;
    @Column(name = "hardcore")
    private Integer hardcore;
    @Column(name = "pop")
    private Integer pop;
    @Column(name = "country")
    private Integer country;
    @Column(name = "blues")
    private Integer blues;
    @Column(name = "folk")
    private Integer folk;
    @Column(name = "hiphop")
    private Integer hiphop;
    @Column(name = "reb")
    private Integer reb;
    @Column(name = "eletronic")
    private Integer eletronic;
    @OneToMany(mappedBy = "perfilId")
    private List<Pontuacao> pontuacaoList;

    public Perfis() {
    }

    public Perfis(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRock() {
        return rock;
    }

    public void setRock(Integer rock) {
        this.rock = rock;
    }

    public Integer getJazz() {
        return jazz;
    }

    public void setJazz(Integer jazz) {
        this.jazz = jazz;
    }

    public Integer getLatin() {
        return latin;
    }

    public void setLatin(Integer latin) {
        this.latin = latin;
    }

    public Integer getHardcore() {
        return hardcore;
    }

    public void setHardcore(Integer hardcore) {
        this.hardcore = hardcore;
    }

    public Integer getPop() {
        return pop;
    }

    public void setPop(Integer pop) {
        this.pop = pop;
    }

    public Integer getCountry() {
        return country;
    }

    public void setCountry(Integer country) {
        this.country = country;
    }

    public Integer getBlues() {
        return blues;
    }

    public void setBlues(Integer blues) {
        this.blues = blues;
    }

    public Integer getFolk() {
        return folk;
    }

    public void setFolk(Integer folk) {
        this.folk = folk;
    }

    public Integer getHiphop() {
        return hiphop;
    }

    public void setHiphop(Integer hiphop) {
        this.hiphop = hiphop;
    }

    public Integer getReb() {
        return reb;
    }

    public void setReb(Integer reb) {
        this.reb = reb;
    }

    public Integer getEletronic() {
        return eletronic;
    }

    public void setEletronic(Integer eletronic) {
        this.eletronic = eletronic;
    }

    @XmlTransient
    public List<Pontuacao> getPontuacaoList() {
        return pontuacaoList;
    }

    public void setPontuacaoList(List<Pontuacao> pontuacaoList) {
        this.pontuacaoList = pontuacaoList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Perfis)) {
            return false;
        }
        Perfis other = (Perfis) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.com.lacibMusic.entidades.Perfis[ id=" + id + " ]";
    }
    
}
